﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Addvertisement.aspx.cs" Inherits="TimKen.Web.Admin.Advertisement.Addvertisement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
  <%=GetLangString("Timage") %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 <script type="text/javascript">
     function Submit() {
         var txt_Pp = document.getElementById("<%=txt_Pp.ClientID%>");
         var URL = document.getElementById("<%=txt_URL.ClientID%>").value;
          if (txt_Pp != null? txt_Pp.value != "":true && URL != "") {
              return true;
          } else {
          alert("不能有为空项!");
          return false
          }
         }
 </script>
    <div class="list-div">
     <table style="width: 100%" cellpadding="0" cellspacing="0"  >
        <tr>
            <td style=" width:10%; text-align:right;">
                 <%=GetLangString("imge")%>:</td>
            <td >
              <asp:FileUpload ID="Ban_Img" runat="server" /> </td>
            <td>
            请您将图片copy到upload/image/下
               </td>
        </tr>
          <tr id="pp" runat="server">
            <td style="text-align:right;">
              品牌:
               </td>
            <td style=" width:40%; text-align: left;">
                <asp:TextBox ID="txt_Pp" runat="server"></asp:TextBox>
                 </td>
            <td>
                </td>
        </tr>
        <tr>
            <td  style="text-align:right;">
               URL:</td>
            <td  style=" width:40%; text-align: left;">
                <asp:TextBox ID="txt_URL" runat="server" Width="99%"></asp:TextBox>  </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td  style="text-align:right;">
                 <%=GetLangString("ody")%>:</td>
            <td style=" width:40%; text-align: left;">
                <asp:TextBox ID="txt_Order" runat="server"></asp:TextBox> </td>
            <td>
                &nbsp;</td>
        </tr>

         <tr>
            <td  style="text-align:right;">
               </td>
            <td style=" width:40%; text-align: left;">
                <asp:Button ID="btn_add" runat="server" Text="添加" onclick="btn_add_Click"  OnClientClick="return Submit()"/>&nbsp;&nbsp;<asp:Button 
                    ID="Button1" runat="server" Text="清空" onclick="Button1_Click" />  </td>
            <td>
                </td>
        </tr>
    </table>
 </div>
</asp:Content>
